<?php
/* @var $this RosterController */
/* @var $model Schedule */
/**/
?>
<h2>Schedule for <?php echo $model->user_relation->fullname; ?> on <?php echo $date;?> </h2>


<?php 
$this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		array(
				'name'=>'Weekday',
				'value'=> $model->weekday_relation->name,
		),			
		array(
				'name'=>'Shift',
				'value'=> $model->shift_relation->name,
		),		
		'shift_relation.start_time',
		'shift_relation.end_time',
		array(
				'name'=>'Q-Shift',
				'value'=> $model->qshift_relation->name,
		),	
		'qshift_relation.start_time',
		'qshift_relation.end_time',	
		array(
				'name'=>'Shift Change Exists?',
				'value'=> ($model->wasChanged) ? 'Yes' : 'No' ,
		),	
		array(
				'name'=>'It\'s Q-Shift Swap?',
				'value'=> ($model->isQshiftChange) ? 'Yes' : 'No' ,
		),			
	),
)); 

?>
